package com.boge.ai;

import com.boge.ai.service.OpenMyBlogTool;
import org.springframework.ai.tool.ToolCallbackProvider;
import org.springframework.ai.tool.method.MethodToolCallbackProvider;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
public class SpringAimcpServerApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringAimcpServerApplication.class, args);
    }


    @Bean
    public ToolCallbackProvider OpenMyBlogTool(OpenMyBlogTool openMyBlogTool) {
        return MethodToolCallbackProvider.builder().toolObjects(openMyBlogTool).build();
    }

}
